﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.IO;

namespace VirtualShare.Common
{
    public class Connection
    {
        public TcpClient Client;
        public NetworkStream Stream;
        public BinaryReader Reader;
        public BinaryWriter Writer;
        public byte[] buffer;

        public Connection(TcpClient tcpClient)
        {
            Client = tcpClient;
            Stream = Client.GetStream();
            Reader = new BinaryReader(Stream);
            Writer = new BinaryWriter(Stream);
            buffer = new byte[2];
        }
    }
}
